package com.sromku.simple.fb.example;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class ActiviteMenuActivity extends Activity {
	 /** Called when the activity is first created. */
	 @Override
	 public void onCreate(Bundle savedInstanceState) {
		 super.onCreate(savedInstanceState);
		 
		 setContentView(R.layout.activite_main);
		
		 Button addUser = (Button) findViewById(R.id.addActivite);
		 addUser.setOnClickListener(new OnClickListener() {
		
			 @Override
			 public void onClick(View arg0) {
				 Intent i = new Intent(ActiviteMenuActivity.this, ActiviteAddActivity.class);
				 startActivity(i);
			 }
		 });
		
		 Button getUsers = (Button) findViewById(R.id.getActivites);
		 getUsers.setOnClickListener(new OnClickListener() {
		
		 @Override
		 public void onClick(View arg0) {
			 Intent i = new Intent(ActiviteMenuActivity.this, ActiviteGetAllActivity.class);
			 startActivity(i);
		 }
		 });
	
	 }
}